#ifndef _APPS_BWM_DECORATIONS_CPIXMAPDECORATION_H_
#define _APPS_BWM_DECORATIONS_CPIXMAPDECORATION_H_

#include "../cdecoration.h"

namespace buola { namespace bwm {

class CPixmapDecoration : public CDecoration
{
public:
    CPixmapDecoration(CClient *pClient);
    virtual ~CPixmapDecoration();

    virtual void Paint(const CRegion &pRegion,int pDesktop);
    virtual void PaintBaseLine();
    
    virtual void Refresh();
    virtual void CreatePixmap()=0;

//////////////// event handlers /////////////////
    virtual void OnGeometryChanged(bool pResize,const CPoint_i &pPos,
                                const CSize_i &pSize,const CPoint_i &pXPos);

public:
    gui::x11::CPixmap *mPixmap;
    bool mPixmapValid;
    gl::CTexture *mTexture;
};

/*namespace bwm*/ } /*namespace buola*/ }

#endif
